package com.tc.service;

import com.tc.base.BaseService;
import com.tc.mapper.LyjqMapper;
import org.apache.ibatis.logging.Log;
import org.apache.ibatis.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * Created by lzy83 on 16/4/6.
 */
@Service
public class LyjqService extends BaseService{
    public static final Log logger = LogFactory.getLog(LyjqService.class.getName());

    @Autowired
    LyjqMapper lyjqMapper;


    public List<Map<String,Object>> selectTjx(Map<String, String> params){
        try {
            return lyjqMapper.selectTjx(params);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }


    public void addTjx(Map<String, String> params){
        lyjqMapper.addTjx(params);
    }


    public List<Map<String,Object>> selectTjjg(Map<String, String> params){
        try {
            return lyjqMapper.selectTjjg(params);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }


    public void addTjjg(Map<String, String> params){
        lyjqMapper.addTjjg(params);
    }

    public List<Map<String,Object>> tjLyjq(Map<String, String> params){
        try {
            return lyjqMapper.tjLyjq(params);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }

    public List<Map<String,Object>> findTjxByType(Map<String, String> params){
        try {
            return lyjqMapper.findTjxByType(params);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
